package com.quanyan.travel.api.req;

import com.quanyan.travel.entity.vo.OrderRequestUserInfo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Created by xiao.lai on 16/5/26.
 */
public class ReqOrderMsg implements Serializable {

    private static final long serialVersionUID = 3444398279490369459L;

    @NotNull
    private Integer id;

    @NotNull(message="主题类型不能为空")
    @Max(value = 1, message = "最大值必须是1")
    @Min(value= 0 ,message= "最小值必须是0！" )
    private Byte type;  //0 非季度活动;1 季度活动

    @NotNull
    private List<Integer> productIds;  //活动的列表,非季度活动该列表为空

    @NotNull(message="报名列表不能为空")
    private List<OrderRequestUserInfo> orderRequestUserInfoList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public List<Integer> getProductIds() {
        return productIds;
    }

    public void setProductIds(List<Integer> productIds) {
        this.productIds = productIds;
    }

    public List<OrderRequestUserInfo> getOrderRquestUserInfoList() {
        return orderRequestUserInfoList;
    }

    public void setOrderRquestUserInfoList(List<OrderRequestUserInfo> orderRequestUserInfoList) {
        this.orderRequestUserInfoList = orderRequestUserInfoList;
    }

}
